package a07;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

public class Bean01 implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("InitializingBean.....");
    }

    @PostConstruct
    public void method01() {
        System.out.println("postConstruct...");
    }

    @PostConstruct
    public void init() {
        System.out.println("@Bean的init...");
    }
}
